//
//  TopCustomTableViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TopCustomTableViewCell.h"
#import "UIView+Frame.h"
#import "UIView+ImageView.h"
#import "UIView+Label.h"
#import "TAMacro.h"

@implementation TopCustomTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _cover_thumb_hdImageView = [UIImageView new];
        [self.contentView addSubview:_cover_thumb_hdImageView];
        _titleLabel = [UILabel new];
        _titleLabel.font = [UIFont systemFontOfSize:16];
        _titleLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    _cover_thumb_hdImageView.frame = CGRectMake(0, 0, SCREEN_WIDTH, self.bounds.size.height);
    _titleLabel.frame = CGRectMake(5, self.bounds.size.height - 30, SCREEN_WIDTH - 5, 20);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
